<div class="form_section">
<h1>Preview: <?=$ingredient->ingredient_title?></h1>
<br/>
<h2>Contains:</h2>
<div class="subtitle">
<?foreach($basetypes->result() as $key => $result):?><? if ($key > 0):?>, <?endif;?>
<?=$result->basetype_title?>
<?endforeach;?>
</div>
</div>
<div class="form_section" id="button_section">
<a href="<?=base_url()?>meal_editing/edit_ingredients/createForm/<?=$ingredient->ingredient_id?>"
   data-fancybox-type="iframe" class="button " id="edit_ingredient">Edit Ingredient</a>
   <?if (get_role_num() == admin_role()):?>
<input class="buttonLight" type="button" id="delete_ingredient" value="Delete Ingredient"/>
<?endif;?>
<input type="hidden" value="<?=$ingredient->ingredient_id?>" id="ingr_id"/>
</div>